package com.ysw.event;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @ClassName SpringValueChangeEvent
 * @Description 采用spring事件机制
 * @Author ysw
 * @Date 2021/10/29 16:57
 */
@Getter
@Setter
public class SpringValueChangeEvent extends ApplicationEvent {
    private String key;
    private String value;
    public SpringValueChangeEvent(Object source, String key, String value) {
        super(source);
        this.key = key;
        this.value = value;
    }
    public SpringValueChangeEvent(Object source) {
        super(source);
    }
}